import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;
import javax.swing.JRadioButton;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextField;
import javax.swing.JButton;


public class UserEinstellungen extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UserEinstellungen frame = new UserEinstellungen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public UserEinstellungen() {
		setTitle("User Einstellungen");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 665, 484);
		contentPane = new JPanel();
		contentPane.setToolTipText("");
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblName = new JLabel("Name");
		lblName.setBounds(5, 11, 36, 16);
		contentPane.add(lblName);
		
		textField = new JTextField();
		textField.setBounds(128, 5, 357, 28);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblVorname = new JLabel("Vorname");
		lblVorname.setBounds(5, 74, 55, 16);
		contentPane.add(lblVorname);
		
		textField_1 = new JTextField();
		textField_1.setBounds(128, 68, 357, 28);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblPasswort = new JLabel("Benutzername");
		lblPasswort.setBounds(5, 137, 88, 16);
		contentPane.add(lblPasswort);
		
		textField_2 = new JTextField();
		textField_2.setBounds(128, 131, 357, 28);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblPasswort_1 = new JLabel("Passwort");
		lblPasswort_1.setBounds(5, 200, 56, 16);
		lblPasswort_1.setHorizontalAlignment(SwingConstants.LEFT);
		contentPane.add(lblPasswort_1);
		
		textField_3 = new JTextField();
		textField_3.setBounds(128, 194, 357, 28);
		contentPane.add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblRolel = new JLabel("Rolle");
		lblRolel.setBounds(5, 260, 31, 16);
		lblRolel.setHorizontalAlignment(SwingConstants.LEFT);
		contentPane.add(lblRolel);
		
		JRadioButton rdbtnNewRadioButton = new JRadioButton("User");
		rdbtnNewRadioButton.setBounds(128, 257, 60, 23);
		rdbtnNewRadioButton.setHorizontalAlignment(SwingConstants.LEFT);
		contentPane.add(rdbtnNewRadioButton);
		
		JRadioButton rdbtnSuperuser = new JRadioButton("Superuser");
		rdbtnSuperuser.setBounds(490, 257, 94, 23);
		contentPane.add(rdbtnSuperuser);
		
		JLabel lblMandanten = new JLabel("Mandanten");
		lblMandanten.setBounds(5, 320, 69, 16);
		contentPane.add(lblMandanten);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(128, 315, 357, 27);
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"1", "2", "3"}));
		contentPane.add(comboBox);
		
		JButton btnSpeichern = new JButton("Speichern");
		btnSpeichern.setBounds(37, 406, 117, 29);
		contentPane.add(btnSpeichern);
		btnSpeichern.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				speichern_popup sp = new speichern_popup();
				sp.setVisible(true);
			}
			
		});
		
		JButton btnBeenden = new JButton("Beenden");
		btnBeenden.setBounds(196, 406, 117, 29);
		contentPane.add(btnBeenden);
		btnBeenden.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
        		dispose();
			}
	});
	}
}
